package com.atguigu.springcloud.irule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;


@SpringBootConfiguration
public class MySelfRule {

    @Bean
    public IRule randomRule(){
        return new RandomRule();//默认轮询  现在改成随机
    }


}
